@echo on
setlocal ENABLEDELAYEDEXPANSION
set apk_path=%1
set local_sign_path=C:\lebo\build_bat\sign_apk
set cur_path=%cd%
set mytime=%time:~0,2%%time:~3,2%

copy %local_sign_path%\mirrorcast_aw.key .\
echo cur_path=%cur_path% and ftp_path=%apk_path%
xcopy  %apk_path%\*    .\
md target


for /F %%h  in ( 'dir /B %cur_path%\ ^|findstr ".apk"  ' ) do (

	set apk_name=%%h
	echo apk_name=!apk_name!
	call  %local_sign_path%\sign_tool.sh   !apk_name! 
) 

ping 127.0.0.1 

xcopy target\* %apk_path%